import React from 'react';
import { Card, Statistic } from 'antd';

const StatCard = ({ title, value, icon, color = '#1890ff' }) => {
  return (
    <Card>
      <Statistic
        title={title}
        value={value}
        prefix={React.cloneElement(icon, { style: { color } })}
        valueStyle={{ color }}
      />
    </Card>
  );
};

export default StatCard; 